#include "structureparser.h"

int main( int argc, char **argv )
{
    if ( argc < 2 ) {
        fprintf( stderr, "Usage: %s <xmlfile>\n", argv[0] );
        return 1;
    }
	qDebug() << argv[1];
    for ( int i=1; i < argc; i++ ) {
        StructureParser handler;
        QFile xmlFile( argv[i] );
        QXmlInputSource source( &xmlFile );
        QXmlSimpleReader reader;
        reader.setContentHandler( &handler );
        reader.parse( source );
    }
    return 0;
}
